package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 评论
 */
@Setter
@Getter
public class Comment extends BaseDomain {

    public static final Integer TYPE_STRATEGY = 1;//攻略
    public static final Integer TYPE_TRAVEL = 2;//游记
    public static final Integer TYPE_COMMENT = 3;//用户的评论

    public static final Integer STETES_UNREAD = 0;//未读
    public static final Integer STATES_READ = 1;//已读

    private Date createTime;//评论时间

    private Long topicId;//主题id 1 攻略 2 游记 3 用户评论

    private Long pId;//父级id

    private Integer type;//评论类型id 1 攻略 2 游记 3 用户的评论

    private String content;//评论内容

    private User user;//用户id

    private Integer states = STETES_UNREAD;//状态

}